    <?php 
get_header(); 

$layout=ThemexCore::getOption('blog_layout','right');
$date_format=get_option('date_format');

if($layout=='left') {
?>
<aside class="sidebar column fourcol">
<?php get_sidebar(); ?>
</aside>
<div class="column eightcol last">
<?php } else if($layout=='right') { ?>
<div class="column eightcol">
<?php } else { ?>
<div class="fullwidth-block">
<?php } ?>
	<?php the_post(); ?>
	<article class="single-post">
		<?php if(has_post_thumbnail() && ThemexCore::getOption('blog_image')!='true') { ?>
		<div class="post-image">
			<div class="bordered-image thick-border">
				<?php the_post_thumbnail('extended'); ?>
			</div>
		</div>
		<?php } ?>
		<div class="post-content tituloPost">
			<h1><?php the_title(); ?></h1>
                            <div class="contenidoPost"><?php the_content(); ?></div>
                            <br>
			<footer class="post-footer">
				<div class="sixcol column">
					<?php if(comments_open()) { ?>
                                        <time class="dateEntrada" datetime="<?php the_time(); ?>"><?php the_time($date_format); ?></time>
					<?php } ?>
                                        <span class="comentarioEntrada"><?php comments_number('0','1','%'); ?></span>
                                        <span class="categoriaEntrada" > <?php the_category(', '); ?></span>
                                        <!--<span class="categoriaEntrada" >    ?php the_category(', '); ?></span> <!--_e('in', 'academy')-->
				</div>
                                <!-- <div class="sixcol column">
					?php if(comments_open()) { ?>
                                        <time class="post-date nomargin dateEntrada" datetime="?php the_time(); ?>">?php the_time($date_format); ?></time>
					?php } ?>
					<div class="post-comment-count comentarioEntrada ">?php comments_number('0','1','%'); ?></div>
					?php if(ThemexCore::getOption('blog_author')!='true') { ?>
					<div class="post-author nomargin autorEntrada">?php the_author_posts_link(); ?></div> <!-- _e('by', 'academy')
 					?php } ?>
					<div class="post-categories categoriaEntrada" > ?php the_category(', '); ?></div> <!--_e('in', 'academy')
				</div>-->
				<div class="sixcol column last">
					<div class="tagcloud" id="etiqueta"><?php the_tags('','',''); ?></div>
				</div>				
			</footer>
		</div>		
	</article>
	<?php comments_template(); ?>
</div>
<?php if($layout=='right') { ?>
<aside class="sidebar column fourcol last">
<?php get_sidebar(); ?>
</aside>
<?php } ?>
<?php get_footer(); ?>